import subprocess

# ping 10.168.1.128
subprocess.call('telnet 10.168.1.128 6666', shell=True)
